package com.virus.server.catalina;

import com.virus.server.utils.ServerXmlUtils;

import java.util.List;

public class Server {

    private List<Service> services;

    public Server() {
        this.services = ServerXmlUtils.parseService();
    }

    public List<Service> getServices() {
        return services;
    }

    public void start() {
        init();
    }

    private void init() {
        for (Service service : services) {
            service.init();
        }
        System.out.println("server startup");
    }
}
